package datapool.char
{
	import datapool.common.FightObject;
	import datapool.model.ModelInfo;
	/**
	 * @author Administrator
	 */
	public class Char extends FightObject
	{
		protected var _level:int;
		protected var _equips:Array;
		protected var _name:String;
		protected var _elmentType:int;
		protected var _modelId:uint;
		protected var _curExp:uint;

		public var speed:int;
		public var attack:int;
		public var defense:int;
		
		public var maxHp:uint;
		public var curHp:uint;
		public var maxSp:uint;
		public var curSp:uint;
		
		protected var _petPack:Array;
		
		public function Char()
		{
			init();
		}
		
		private function init():void
		{
			_level      = 0;
			_equips     = [];
			_name       = "NoneName";
			_elmentType = -1;
			_modelId    = 0;
			_curExp     = 0;
			_petPack    = [];
		}
		
		public function get name():String
		{
			return _name;
		}
		
		public function get level():int
		{
			return _level;
		}
		
		public function get curExp():int
		{
			return _curExp;
		}
		
		public function get equips():Array
		{
			return _equips;
		}
		
		public function get elmentType():int
		{
			return _elmentType;
		}
		
		public function get modelId():uint
		{
			return _modelId;
		}
				
		public function addExp(val:int):void
		{
			_curExp += val;
		}
		
		public function get pets():Array
		{
			return _petPack;
		}
	}
}
